package com.briup.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@ApiModel("新增或更新指标记录传输对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AddOrUpdateIndexRecordDTO {

    /**
     * 记录id
     */
    @TableId(type = IdType.AUTO)
    private Integer irdId;

    /**
     * 重量
     */
    private String irdWeight;

    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime irdTime;

    /**
     * 是否健康 健康,不健康
     */
    private String irdHealthy;

    /**
     * 体温
     */
    private String irdTemperature;

    /**
     * 呼吸频率
     */
    private String irdBreathing;

    /**
     * 心率
     */
    private String irdHeartRate;

    /**
     * 动物外键
     */
    private String irdAnimalId;
}
